package org.jeecg.modules.platform.fallback;

import org.jeecg.common.system.api.entity.SysPermission;
import org.jeecg.modules.platform.api.PlatformOrganizationPermissionApi;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConditionalOnMissingClass("org.jeecg.modules.platform.organization.controller.CyPlatformOrganizationPermissionController")
public class PlatformOrganizationPermissionFallback implements PlatformOrganizationPermissionApi {
    @Override
    public List<SysPermission> listModules(Boolean child) {
        throw new RuntimeException("未开通权限控制模块");
    }

    @Override
    public List<SysPermission> listOrgPermission(String orgId) {
        throw new RuntimeException("未开通权限控制模块");
    }

    @Override
    public List<String> listModuleByOrg(String orgId) {
        throw new RuntimeException("未开通权限控制模块");
    }
}
